package com.dm.controller;

import com.dm.dto.TableOne;
import com.dm.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author God.Jhon.Black
 * @date 2023-01-19
 */
@RestController
public class TestController {

    @Resource
    private TestService testService;

    @RequestMapping("/")
    public TableOne get(){
        TableOne tableOne = testService.get();
        return tableOne;
    }

}
